from django.contrib.auth.models import AbstractUser
from django.db import models

# Create your models here.
"""
1.可以自己定义模型类
2.可以继承Django自带的用户信息，但是没有手机号,Django提供了认证信息
"""

class User(AbstractUser):
    mobile = models.CharField(max_length=11, unique=True, verbose_name="手机号")

    class Meta:
        db_table = "tb_users"
        verbose_name = "用户"
        verbose_name_plural = verbose_name
